package cn.tedu.yl.dataOverview.controller;

import cn.tedu.yl.base.response.JsonResult;
import cn.tedu.yl.dataOverview.pojo.vo.dataOverviewQueryVO;
import cn.tedu.yl.dataOverview.service.dataOverviewService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "数据概览管理模块")
@RestController
@RequestMapping("v1/data/")
public class dataOverviewController {
    @Autowired
    private dataOverviewService dataOverviewService;


    @ApiOperation(value = "获取数据概览")
    @GetMapping("Overview")
    public JsonResult getDataOverview(){
        dataOverviewQueryVO data = dataOverviewService.getDataOverview();
        return JsonResult.ok(data);
    }

}
